<%-- 
    Document   : REditProcess
    Created on : Mar 30, 2012, 4:32:46 PM
    Author     : Tokino
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@ page language="java" %>
<%@ page import="java.util.*" %>
<%!
%>



<jsp:useBean id="formUpdateProduct" class="servlets.UpdateProduct" scope="request">
    <jsp:setProperty name="formUpdateProduct" property="*"/>
</jsp:useBean>  
<jsp:useBean id="SecprogScopeSession" class=
             "servlets.SecprogScopeSession" scope="session" />

<%
formUpdateProduct.setAccounttype(SecprogScopeSession.getAccounttype());
formUpdateProduct.setTitle(SecprogScopeSession.getTitle());
formUpdateProduct.setCategory(SecprogScopeSession.getCategory());
formUpdateProduct.setMtype(SecprogScopeSession.getMtype());

    if (formUpdateProduct.uproduct()) {
        SecprogScopeSession.setSynopsis(formUpdateProduct.getSynopsis());
        SecprogScopeSession.setPrice(formUpdateProduct.getPrice());
        SecprogScopeSession.setAddinfo(formUpdateProduct.getAddinfo());
%>
<jsp:forward page="REdit.jsp"/>
<%} else {
            SecprogScopeSession.setSynopsis(formUpdateProduct.getSynopsis());
        SecprogScopeSession.setPrice(formUpdateProduct.getPrice());
        SecprogScopeSession.setAddinfo(formUpdateProduct.getAddinfo());
%>
<jsp:forward page="REdit.jsp"/>
<%    }
%>